package sudroid.android;

import android.content.Context;
import android.graphics.Rect;
import android.os.Build;
import android.telephony.TelephonyManager;
import android.view.Display;
import android.view.WindowManager;
import sudroid.AssertUtil;

public class DeviceUtil
{
  public static String getDeviceBrand()
  {
    return Build.BRAND;
  }

  public static String getDeviceModel()
  {
    return Build.MODEL;
  }

  public static String getDeviceName()
  {
    return Build.DEVICE;
  }

  public static String getIMEI(Context paramContext)
  {
    AssertUtil.checkNull(paramContext);
    return ((TelephonyManager)paramContext.getSystemService("phone")).getDeviceId();
  }

  public static String getIMSI(Context paramContext)
  {
    AssertUtil.checkNull(paramContext);
    return ((TelephonyManager)paramContext.getSystemService("phone")).getSubscriberId();
  }

  public static void getScreenRect(Context paramContext, Rect paramRect)
  {
    AssertUtil.checkNull(paramContext);
    AssertUtil.checkNull(paramRect);
    Display localDisplay = ((WindowManager)paramContext.getSystemService("window")).getDefaultDisplay();
    int i = localDisplay.getWidth();
    int j = localDisplay.getHeight();
    paramRect.set(0, 0, i, j);
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     sudroid.android.DeviceUtil
 * JD-Core Version:    0.6.0
 */